package com.huluobo.a2307douyindemo.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.huluobo.a2307douyindemo.R
import com.huluobo.a2307douyindemo.utils.ImageUtils
import com.huluobo.lib_base.bean.GoodsBean

/**
 *  Created by LC on 2025/9/22.
 */
class YellowCartAdapter : BaseQuickAdapter<GoodsBean, BaseViewHolder>(R.layout.item_yellow_cart) {
    override fun convert(holder: BaseViewHolder, item: GoodsBean) {
        ImageUtils.loadImage(context, item.goods_default_icon, holder.getView(R.id.item_cart_goods_icon_iv))
        holder.setText(R.id.item_cart_goods_desc_tv, item.goods_desc)
        holder.setText(R.id.item_cart_goods_price_tv, "${item.goods_default_price}元")
    }
}